<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>">

		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>最佳队员历史排行</title>
		<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
a {
	color:#000;
	text-decoration: none;
}
a:hover {
	color:#CA5466;
	text-decoration:underline;
}
a img {
	border: 0;
}
.STYLE1 {
	font-size: 13px;
	color: #000;
}

.STYLE3 {
	font-size: 12px;
	font-weight: bold;
}

.STYLE4 {

	font-size: 12px;
}
-->
</style>
		<script language="javascript" src="js/jquery.js"></script>
		<script language="javascript" src="js/tdColor.js"></script>
		<script>
			var ifCanMove = false;
			var mousePos;
			document.onmousemove = mouseMove;

			function mouseMove(ev){
				ev = ev || window.event;
				mousePos = mousePosition(ev);
			}
			
			function mousePosition(ev) {
				if (ev.pageX || ev.pageY) {
					return {x:ev.pageX,y:ev.pageY};
				}
				return {
					x:ev.clientX+document.body.scrollLeft - document.body.clientLeft,
					y:ev.clientY+document.body.scrollTop - document.body.clientTop
				}
			}
		</script>

	</head>

	<body>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="30" background="images/main/tab_05.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="30">
								<img src="images/main/tab_03.gif" width="12" height="30" />
							</td>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="46%" valign="middle">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td width="5%">
														<div align="center">
															<img src="images/main/tb.gif" width="16" height="16" />
														</div>
													</td>
													<td width="95%" class="STYLE1">
														<span class="STYLE3">你当前的位置</span>：[风云榜]-[月之星历史排行]
													</td>
												</tr>
											</table>
										</td>
										<td width="54%">
											<table border="0" align="right" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="80">
													</td>
													<td width="60">
														<table width="90%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
																<td class="STYLE1"></td>
																<td class="STYLE1"></td>
															</tr>
														</table>
													</td>

												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
							<td width="16">
								<img src="images/main/tab_07.gif" width="16" height="30" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="8" background="images/main/tab_12.gif">
								&nbsp;
							</td>
							<td>
								<s:if test="starHistoryList.size == 0">
									无对应记录
								</s:if>
								<s:else>
								<table width="100%" border="0" cellpadding="0" cellspacing="1"
									bgcolor="#b5d6e6">
									<tr bgcolor="#FFFFFF">
										<td width="45" height="22" background="images/main/bg.gif">
											<div align="center">
												<span class="STYLE1">序号</span>
											</div>
										</td>
										<td width="100" height="22" background="images/main/bg.gif">
											<div align="center">
												<span class="STYLE1">期数</span>
											</div>
										</td>
										<td width="120" height="22" background="images/main/bg.gif">
											<div align="center">
												<span class="STYLE1">姓名</span>
											</div>
										</td>
										<td width="120" height="22" background="images/main/bg.gif">
											<div align="center">
												<span class="STYLE1">组名</span>
											</div>
										</td>
										<td width="120" height="22" background="images/main/bg.gif">
											<div align="center">
												<span class="STYLE1">评定时间</span>
											</div>
										</td>
										<td width="35%" height="22" background="images/main/bg.gif">
											<div align="center">
												<span class="STYLE1">组长评语</span>
											</div>
										</td>
										<td height="22" background="images/main/bg.gif">
											<div align="center">
												<span class="STYLE1">操作</span>
											</div>
										</td>
										
									</tr>
									<s:iterator value="starHistoryList" var="starHistoryList" status="status">
									<tr class="changeColor" bgcolor="#FFFFFF"
										style="color: #ff0000">
										<td height="20">
											<div align="center" class="STYLE1">
												<div align="center">
													<span class="STYLE1"><s:property value="#status.count"/></span>
												</div>
											</div>
										</td>
										<td height="20">
											<div align="center" >
												<span class="STYLE1" >
													<s:property value="#starHistoryList.key" />
												</span>
											</div>
										</td>
										<td height="20">
											<div align="center">
												<span class="STYLE1">
													<s:property value="#starHistoryList.value.star1.user.name" />
												</span>
											</div>
											<div align="center" style="border-top:1px dashed #b5d6e6">
												<span class="STYLE1">
													<s:property value="#starHistoryList.value.star2.user.name" />
												</span>
											</div>
										</td>
										<td height="20">
											<div align="center">
												<span class="STYLE1">
													<s:property value="#starHistoryList.value.star1.user.group.groupName" /> 
												</span>
											</div>
											<div align="center" style="border-top:1px dashed #b5d6e6">
												<span class="STYLE1">
													<s:property value="#starHistoryList.value.star2.user.group.groupName" />
												</span>
											</div>
										</td>
										<td height="20">
											<div align="center">
												<span class="STYLE1">
													<s:date name="#starHistoryList.value.star1.evaluateDate" format="yyyy年MM月dd日" nice="false"/>
												</span>
											</div>
											<div align="center" style="border-top:1px dashed #b5d6e6">
												<span class="STYLE1">
													<s:date name="#starHistoryList.value.star2.evaluateDate" format="yyyy年MM月dd日" nice="false"/>
												</span>
											</div>
										</td>
										<td height="20">
											<div align="left" >
												<span class="STYLE1">
													<s:property value="#starHistoryList.value.star1.description" />
												</span>
											</div>
											<div align="left" style="border-top:1px dashed #b5d6e6;">
												<span class="STYLE1">
													<s:property value="#starHistoryList.value.star2.description" />
												</span>
											</div>
										</td>
										<td height="20">
											<div align="center" style="padding:0;font-weight:normal;font-size:11px">
												<span class="STYLE1">
													<span style="background:url(images/main/eye.gif) 0 -2px no-repeat;padding-left:16px;"><a href="front/getNewStar.action?qishu=<s:property value="#starHistoryList.key" />" >查看详细</a></span>
													<s:if test="#session.user.post in {4}" >
														<span style="background:url(images/main/export.gif) 0 -2px no-repeat;padding-left:16px;"><a href="front/modifyStar.action?qishu=<s:property value="#starHistoryList.key" />" >修改</a></span>
														<span style="background:url(images/main/del.gif) 0 -2px no-repeat;padding-left:16px;"><a href="front/deleteStar.action?qishu=<s:property value="#starHistoryList.key" />" onclick="return confirm('确认删除？');">删除</a></span>
													</s:if>
												</span>
											</div>
										</td>
									</tr>
									</s:iterator>
								</table>
								</s:else>
							</td>
							<td width="8" background="images/main/tab_15.gif">
								&nbsp;
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td height="35" background="images/main/tab_19.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="35">
								<img src="images/main/tab_18.gif" width="12" height="35" />
							</td>
							<td>
								<form action="front/getResourceList.action" method="get">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td class="STYLE4">
												&nbsp;&nbsp;共有 <s:property value="page.rowCount" /> 条记录，
												当前第 <s:property value="page.currentPage" /> / <s:property value="page.pageCount" /> 页
											</td>
											<td>
								<s:if test="resources.size != 0">
												<table border="0" align="right" cellpadding="0"
													cellspacing="0">
													<tr>
														<td width="40">
															<a href="front/getResourceList.action?page.currentPage=1"><img src="images/main/first.gif"
																	width="37" height="15" border="0" />
															</a>
														</td>
														<s:if test="page.currentPage != 1" >
														<td width="45">
															<a href="front/getResourceList.action?page.currentPage=<s:property value="page.currentPage - 1" />" ><img src="images/main/back.gif"
																	width="43" border="0" height="15" />
															</a>
														</td>
														</s:if>
														<s:if test="page.currentPage != page.pageCount" >
														<td width="45">
															<a href="front/getResourceList.action?page.currentPage=<s:property value="page.currentPage + 1" />" ><img src="images/main/next.gif"
																	width="43" border="0" height="15" />
															</a>
														</td>
														</s:if>
														<td width="40">
															<a href="front/getResourceList.action?page.currentPage=<s:property value="page.pageCount" />" ><img src="images/main/last.gif"
																	border="0" width="37" height="15" />
															</a>
														</td>
														<td width="100">
															<div align="center">
																<span class="STYLE1">转到第 <input name="page.currentPage"
																		type="text" size="4"
																		style="height: 12px; width: 20px; border: 1px solid #999999;" />
																	页 </span>
															</div>
														</td>
														<td width="40">
															<input type="image" src="images/main/go.gif" width="37"
																height="15" />
														</td>
													</tr>
												</table>
								</s:if>
											</td>
										</tr>
									</table>
								</form>
							</td>
							<td width="16">
								<img src="images/main/tab_20.gif" width="16" height="35" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>